package com.xmy.cultivate.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 微信绑定
 * </p>
 *
 * @author min
 * @since 2023-01-12
 */
@TableName("wechars_bind")
@Data
public class WecharsBind implements Serializable {

    private static final long serialVersionUID = 1L;

    private Long id;

    private String unionid;

    private String openid;

    private String phone;

    private Long studentId;

    /**
     * 1公众号，2是小程序
     */
    private Integer type;

    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createdAt;

    @TableField(exist = false)
    String studentName;
}
